package com.molichuxing.services.infrastructure.service.impl;

import com.molichuxing.services.infrastructure.convertor.Convert;
import com.molichuxing.services.infrastructure.dao.DeliveryParamDicMapper;
import com.molichuxing.services.infrastructure.dao.PurchaseParamDicMapper;
import com.molichuxing.services.infrastructure.dto.response.DeliveryParamDicDto;
import com.molichuxing.services.infrastructure.dto.response.PurchaseParamDicDto;
import com.molichuxing.services.infrastructure.service.DeliveryParamDicService;
import com.molichuxing.services.infrastructure.service.PurchaseParamDicService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author: liuruifeng
 * @Description:
 * @Date: Created in 14:25 2019/11/05
 * @Modified By:
 **/
@Service("purchaseParamDicService")
public class PurchaseParamDicServiceImpl implements PurchaseParamDicService {

    @Resource
    private PurchaseParamDicMapper purchaseParamDicMapper;

    @Override
    public List<PurchaseParamDicDto> selectByType(Integer type) {
        return Convert.toDeliveryParamDicDto(purchaseParamDicMapper.selectByType(type));
    }
}
